<template>
<div class="recentlyReportScollList" style="width:392px;height:290px;background: white">
        <div style="background-color: rgba(231, 76, 60, 1);border: none;border-radius: 4px;width: 100%;height: 4px;"></div>
        <p style="margin: 12px 8px;"><span style="font-size: 18px;font: bold;">轮播表</span></p>
        <dv-scroll-board :config="config" style="width:100%;height:350px;" />
      </div>

</template>

<script>
import {  request2 } from "../network"
export default{
data(){
return{           
 config: {
        header: ['单位', '姓名', '日期'],
        headerBGC: '#F5F5FA',
        oddRowBGC: '#000',
        evenRowBGC: '#000',
        align: ['center', 'center', 'center'],
        data: [],
      },
}
},
mounted(){
	this.recentReportList()
},
methods:{
//调接口处**
   recentReportList(){
     request2({
       
       url: "/apt/eventList",
        params:{
          pageNum:''},
     }).then((res) => {
       var arrlistresult =[];

      res.data.dataList.map(item =>{
        var arrlist = [item.org_name , item.event_information, item.event_report_time]
         arrlistresult.push(arrlist)
 })
  this.config={
      header: ['单位', '姓名', '日期'],
        headerBGC: '#F5F5FA',
        oddRowBGC: '#fff',
        evenRowBGC: '#fff',
        align: ['center', 'center', 'center'],
        data:[arrlistresult]
        }

     })
   }
   }
}
</script>

<style>

</style>